From: Jasper St. Pierre Date: Thu, 6 Sep 2012 19:35:54 +0000 (-0300) Subject: shellEntry: Make the entry have a fake focus state when a context menu is open X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5881 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=22266899dc45378d5bb6390c5c5b5bf40d8566b7;p=gnome-shell.git shellEntry: Make the entry have a fake focus state when a context menu is open This means that right-clicking on an entry shouldn't visibly change the theme, which is unexpected. Make sure that closing the menu refocused the entry, too. https://bugzilla.gnome.org/show_bug.cgi?id=683509 --- diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index b82bc46e4..18fe7d199 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -76,6 +76,12 @@ const EntryMenu = new Lang.Class({ this.actor.grab_key_focus(); this.parent(); + this._entry.add_style_pseudo_class('focus'); + }, + + close: function() { + this._entry.grab_key_focus(); + this.parent(); }, _updateCopyItem: function() {